package utils

import (
	"time"
)

const DATE_FORMAT = "2006-01-02 15:04:05"

func FormatTimestamp(timestamp int64) string {
	date := time.Unix(timestamp, 0)
	return date.Format(DATE_FORMAT)
}

func FormatIso(iso string) string {
	date, _ := time.Parse(time.RFC3339, iso)
	return date.Format(DATE_FORMAT)
}
